import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)


export default new Router({
  mode:'history',  //使用history防止url中出现#
  routes: [
    {
      path: '/share',
      name: 'share',
      meta: {title: '绑定关系'},
      component: () => import('@/views/share')
    },{
      path: '/person',
      name: 'person',
      meta: {title: '个人中心'},
      component: () => import('@/views/person')
    },{
      path: '/setting',
      name: 'setting',
      meta: {title: '设置'},
      component: () => import('@/views/setting')
    },{
      path: '/setting/nickname',
      name: 'nickname',
      meta: {title: '设置昵称'},
      component: () => import('@/views/setting/nickname'),
    },{
      path: '/setting/name',
      name: 'name',
      meta: {title: '实名认证'},
      component: () => import('@/views/setting/name'),
    },{
      path: '/setting/wechat',
      name: 'wechat',
      meta: {title: '设置微信号'},
      component: () => import('@/views/setting/wechat'),
    },{
      path: '/setting/password',
      name: 'reset_password',
      meta: {title: '重置密码'},
      component: () => import('@/views/setting/password'),
    },{
      path: '/setting/phone',
      name: 'phone',
      meta: {title: '绑定手机'},
      component: () => import('@/views/setting/phone'),
    },{
      path: '/setting/avatar',
      name: 'avatar',
      meta: {title: '设置头像'},
      component: () => import('@/views/setting/avatar')
    },{
      path: '/shopcar',
      name: 'shopcar',
      meta: {title: '购物车'},
      component: () => import('@/views/shopcar')
    },{
      path: '/',
      name: 'mall',
      meta: {title: '商城'},
      component: () => import('@/views/mall')
    },{
      path: '/login',
      name: 'login',
      meta: {title: '登录'},
      component: () => import('@/views/login')
    },{
      path: '/member',
      name: 'member',
      meta: {title: '会员中心'},
      component: () => import('@/views/member')
    },{
      path: '/order',
      name: 'order',
      meta: {title: '订单'},
      component: () => import('@/views/order')
    },{
      path: '/order/detail',
      name: 'order_detail',
      meta: {title: '订单详情'},
      component: () => import('@/views/orderDetail')
    },{
      path: '/fans/list',
      name: 'fans',
      meta: {title: '我的粉丝'},
      component: () => import('@/views/fans')
    },{
      path: '/fans/detail',
      name: 'fans_detail',
      meta: {title: '粉丝详情'},
      component: () => import('@/views/fansDetail')
    },{
      path: '/addr/add',
      name: 'addrAdd',
      meta: {title: '添加地址'},
      component: () => import('@/views/addrAdd')
    } ,{
      path: '/addr',
      name: 'addrList',
      meta: {title: '地址列表'},
      component: () => import('@/views/addrList')
    },{
      path: '/gold',
      name: 'gold',
      meta: {title: '余额记录'},
      component: () => import('@/views/gold')
    },{
      path: '/jgz',
      name: 'jgz',
      meta: {title: '军功章记录'},
      component: () => import('@/views/jgz')
    },{
      path: '/jf',
      name: 'jf',
      meta: {title: '积分记录'},
      component: () => import('@/views/jf')
    },{
      path: '/chongzhi',
      name: 'chongzhi',
      meta: {title: '充值中心'},
      component: () => import('@/views/chongzhi')
    },{
      path: '/tixian',
      name: 'tixian',
      meta: {title: '提现'},
      component: () => import('@/views/tixian')
    },{
      path: '/bank',
      name: 'bankCar',
      meta: {title: '银行卡列表'},
      component: () => import('@/views/bankCar')
    },{
      path: '/bank/Add',
      name: 'bankcarAdd',
      meta: {title: '添加银行卡'},
      component: () => import('@/views/bankcarAdd')
    },{
      path: '/recommend',
      name: 'recommend',
      meta: {title: '推荐人信息'},
      component: () => import('@/views/recommender')
    },{
      path: '/notice',
      name: 'notice',
      meta: {title: '公告列表'},
      component: () => import('@/views/notice')
    },{
      path: '/notice/detail',
      name: 'notice_detail',
      meta: {title: '公告详情'},
      component: () => import('@/views/noticeDetail')
    },{
      path: '/password',
      name: 'password',
      meta: {title: '忘记密码'},
      component: () => import('@/views/password')
    },{
      path: '/password/pay',
      name: 'payWord',
      meta: {title: '设置支付密码'},
      component: () => import('@/views/payWord')
    },{
      path: '/good/detail',
      name: 'goodsDetail',
      meta: {title: '商品详情'},
      component: () => import('@/views/goodsDetail')
    },{
      path: '/merchantticket',
      name: 'merchantTicket',
      meta: {title: '商家小票'},
      component: () => import('@/views/merchantTicket')
    },{
      path: '/agreement',
      name: 'agreement',
      meta: {title: '用户注册协议'},
      component: () => import('@/views/agreement')
    },{
      path: '/transfer',
      name: 'transfer',
      meta: {title: '转账'},
      component: () => import('@/views/transfer')
    },{
      path: '/mean',
      name: 'mean',
      meta: {title: '资料'},
      component: () => import('@/views/mean')
    }
  ]
})
